package com.wind.trademark.client.service;

import java.util.List;
import java.util.Map;

import com.wind.trademark.client.model.CtCompany;
import com.wind.trademark.client.model.CtContactor;
import com.wind.trademark.common.exception.TmException;
import com.wind.trademark.common.vo.ComboBean;
import com.wind.trademark.common.vo.PageBean;
import com.wind.trademark.common.vo.PageParam;



/**
 * @author <a href="mailto:xmufeng@163.com">Wind Wu</a>
 * 
 */
public interface CompanyService {

	CtCompany saveOrUpdateCompany(CtCompany ctCompany);
	
	PageBean queryCompany(PageParam pageParam, Map<String, Object> params);

	void deleteCompany(Long id);

	CtCompany getCompany(Long id);

	List<CtCompany>  getCtCompanyByCompanyName(String compName);

	List<ComboBean> goolgeCtCompanyByCompanyName(Map<String, Object> params);

	PageBean queryContactor(PageParam pageParam, Map<String, Object> params);

	CtContactor saveOrUpdateContactor(CtContactor ctContactor);

	void deleteContactors(List<Long> ids);

	void setDefaultContactor(Long id);

	List<CtContactor> getContactorsByCompId(Long compId);

	CtContactor loadContactor(Long id);

	CtContactor getDefaultContactorsByCompId(Long compId) throws TmException;

	


	
	
	
}